#include "WarGameLib.h"


list<wgWindow*> wgResourceManager::windows;


void wgResourceManager::RegisterWindow(wgWindow* window)
{
	windows.push_back(window);
}

bool wgResourceManager::FindWindowById(WINDOWID windowID, wgWindow** windowPtr)
{
	for(list<wgWindow*>::iterator it = windows.begin(); it != windows.end(); ++it)
		if(windowID == (*it)->GetWindowID())
		{
			*windowPtr = *it;
			return true;
		}
	return false;
}

